package io.github.wanggit.antrpc.demo.config_center.demo2;

import io.github.wanggit.antrpc.client.config.ConfigChangeTypeEnum;
import io.github.wanggit.antrpc.client.config.IConfigChangeListener;
import org.springframework.stereotype.Component;

@Component
public class MyConfigChangeListener implements IConfigChangeListener {
    @Override
    public void changed(ConfigChangeTypeEnum changeType, String key, String oldValue, String newValue) {
        System.out.println(changeType.name() + ", key=" + key + ", oldValue=" + oldValue + ", newValue=" + newValue);
    }
}
